﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DG.Tweening;

namespace Miao.UI
{
    public class HorizontalTelevisionMotion : BaseUIMotion
    {
        float speed;
        public HorizontalTelevisionMotion(float speed = 1)
        {
            this.speed = speed;
        }
        public override void Play(bool forward, TweenCallback complete)
        {
            if (forward)
            {
                this.TweenGameObject.transform.DOOpenVerticalTelevision(speed, complete);
            }
            else
            {
                this.TweenGameObject.transform.DOCloseVerticalTelevision(speed, complete);
            }
        }
    }
}